package web.dang.zhou.service;

import java.util.List;

import web.dang.zhou.dao.DAOFactory;
import web.dang.zhou.model.ReceiveAddress;

public class ReceiveAddressServiceImp implements ReceiveAddressService {

	@Override
	public List<ReceiveAddress> findByUserId(int Userid) throws Exception {
		
		return DAOFactory.getReceiveAddressDAO().findByUserId(Userid);
	}

	@Override
	public void save(ReceiveAddress address) throws Exception {
		DAOFactory.getReceiveAddressDAO().save(address);
		
	}

	@Override
	public ReceiveAddress findById(int id) throws Exception {
		
		return DAOFactory.getReceiveAddressDAO().findById(id);
	}

}
